﻿using System;
using System.Web.Mvc;

namespace Pyramid.Mvc.Html
{
	public static class HtmlExtensions
	{
		public static string DateString(this HtmlHelper htmlHelper, DateTime? date)
		{
			return date.HasValue ? date.Value.ToString("yyyy-MM-dd") : "";
		}
	}
}